package test;

import com.opensymphony.xwork2.Action;

public class UserAction {
   private int id;
   private IUserDao userDAO;
  // private IUserDao userDaoi;
   private User u;
   
   
   
   
   
   public User getU() {
	return u;
}




public void setU(User u) {
	this.u = u;
}






public int getId() {
	return id;
}




public void setId(int id) {
	this.id = id;
}




public IUserDao getUserDAO() {
	return userDAO;
}




public void setUserDAO(IUserDao userDAO) {
	this.userDAO = userDAO;
}




public String execute(){
	   userDAO.del(id);
	   return Action.SUCCESS;
	   
   }

public String save(){
	  userDAO.save(u);
	  return Action.SUCCESS;
	
}


}
